<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <h1>info列表</h1>
    <a href="/info/add/">添加用户</a>
    <table border=""1>
        <thead>
        <tr>
            <th>ID</th>
            <th>姓名</th>
            <th>密码</th>
            <th>年龄</th>
            <th>功能</th>
        </tr>
        </thead>
        <tbody>
        {% for object in data_list %}
        <tr>
            <td>{{ object.id }}</td>
            <td>{{ object.name }}</td>
            <td>{{ object.password }}</td>
            <td>{{ object.age }}</td>
            <td><a href="/info/delete/?nid={{ object.id }}">删除用户</a></td>
        </tr>
        {% endfor %}
        </tbody>
    </table>
</body>
</html>